const {
	editMethod,
} = require('./form-methods')

module.exports = function(templateComp) {
	let {
		dailogComp,
		templateForm,
	} = templateComp
	dailogComp.formDialog.dialog({
		title: '模板参数',
		top: 50,
		left: 300,
		width: 800,
		height: 660,
		closed: true,
		modal: true,
		buttons: [{
			text: '保存',
			iconCls: 'icon-save',
			handler: function() {
				editMethod.call(templateComp)
			}
		}, {
			text: '取消',
			iconCls: 'icon-cancel',
			handler: function() {
				dailogComp.formDialog.dialog('close')
			}
		}]
	})
}